﻿
    using Chain.BLL;
    using Chain.Model;
    using System;
    using System.Text.RegularExpressions;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public partial class lookpersonalinfo : Page
    {
        private Chain.BLL.Mem MemIBll = new Chain.BLL.Mem();
        private Chain.BLL.MemLevel MemLevelBll = new Chain.BLL.MemLevel();


        protected void Page_Load(object sender, EventArgs e)
        {
            if ((base.Request.Cookies["uid"] != null) && Regex.IsMatch(base.Request.Cookies["uid"].Value, @"^\d+$"))
            {
                int MemID = Convert.ToInt32(base.Request.Cookies["uid"].Value);
                Chain.Model.Mem MemModel = this.MemIBll.GetModel(MemID);
                this.spMemPoint.InnerText = MemModel.MemPoint.ToString();
                this.spMemMoney.InnerText = MemModel.MemMoney.ToString("0.00");
                this.spMemSm.InnerText = MemModel.SmallChange.ToString("0.00");
                this.spMemConsumeMoney.InnerText = MemModel.MemConsumeMoney.ToString("0.00");
                Chain.Model.MemLevel MemLevelModel = this.MemLevelBll.GetModel(MemModel.MemLevelID);
                this.spLevelName.InnerText = MemLevelModel.LevelName;
            }
        }
    }


